package com.sunda.spmscommon.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统日志表
 * </p>
 *
 * @author Wayne
 * @since 2020-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_LOG")
@ApiModel(value="SysLog对象", description="系统日志表")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一ID")
    @TableId("UUID")
    private String uuid;

    @ApiModelProperty(value = "操作日志类型（1操作日志；2登录日志）")
    @TableField("LOG_TYPE")
    private String logType;

    @ApiModelProperty(value = "日志内容")
    @TableField("LOG_CONTENT")
    private String logContent;

    @ApiModelProperty(value = "操作类型（0登录；1查询；2添加；3修改；4删除；5导入；6导出；）")
    @TableField("OPERATE_TYPE")
    private String operateType;

    @ApiModelProperty(value = "用户工号")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "用户名")
    @TableField("USERNAME")
    private String userName;

    @ApiModelProperty(value = "IP")
    @TableField("IP")
    private String ip;

    @ApiModelProperty(value = "请求Java方法")
    @TableField("METHOD")
    private String method;

    @ApiModelProperty(value = "请求路径")
    @TableField("REQUEST_URL")
    private String requestUrl;

    @ApiModelProperty(value = "请求参数")
    @TableField("REQUEST_PARAM")
    private String requestParam;

    @ApiModelProperty(value = "请求类型")
    @TableField("REQUEST_TYPE")
    private String requestType;

    @ApiModelProperty(value = "耗时")
    @TableField("COST_TIME")
    private Long costTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "日志表自增ID")
    @TableField("LOG_AUTO_ID")
    private Integer logAutoId;

    @ApiModelProperty(value = "备注信息")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "关联单据号")
    @TableField("RELATE_DOC_NUMBER")
    private String relateDocNumber;

    @ApiModelProperty(value = "返回参数")
    @TableField("RETURNED_MESSAGE")
    private String returnedMessage;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    public String getRequestType() {
        return requestType;
    }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public Long getCostTime() {
        return costTime;
    }

    public void setCostTime(Long costTime) {
        this.costTime = costTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getLogAutoId() {
        return logAutoId;
    }

    public void setLogAutoId(Integer logAutoId) {
        this.logAutoId = logAutoId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRelateDocNumber() {
        return relateDocNumber;
    }

    public void setRelateDocNumber(String relateDocNumber) {
        this.relateDocNumber = relateDocNumber;
    }

    public String getReturnedMessage() {
        return returnedMessage;
    }

    public void setReturnedMessage(String returnedMessage) {
        this.returnedMessage = returnedMessage;
    }
}
